package com.tebiecloud.store.client.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tebiecloud.common.mybatis.base.entity.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 门店员工流水
 * @author tebie
 * @date 2019-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StoreStaffFlow extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 门店员工id
     */
    @TableId(value = "store_staff_id", type = IdType.ID_WORKER)
    private Long storeStaffId;

    /**
     * 变化金额，单位分（负数为支出，正数为收入）
     */
    private Integer amount;

    /**
     * 流水类型，1订单核销收入2提现
     */
    private Integer type;

    /**
     * 流水类型对应的id
     */
    private Long typeId;

    /**
     * 描述
     */
    private String desp;

    /**
     * 年份
     */
    private Integer year;

    /**
     * 月份
     */
    private Integer month;

    /**
     * 日期
     */
    private Integer day;

}
